package com.huanming.dsjc.modular.goods.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 部门表
 * </p>
 *
 * @author xufei
 * @since 2018-01-31
 */
@TableName("hmst_shop_info")
public class ShopInfo extends Model<ShopInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 排序
     */
	private String num;
    /**
     * 父部门id
     */
	@TableField("shop_type_id")
	private Integer shopTypeId;
    /**
     * 简称
     */
	@TableField("shop_name")
	private String shopName;
	@TableField("group_id")
	private Integer groupId;
	@TableField("class_id")
	private Integer classId;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getNum() {
		return num;
	}

	public void setNum(String num) {
		this.num = num;
	}

	public Integer getShopTypeId() {
		return shopTypeId;
	}

	public void setShopTypeId(Integer shopTypeId) {
		this.shopTypeId = shopTypeId;
	}

	public String getShopName() {
		return shopName;
	}

	public void setShopName(String shopName) {
		this.shopName = shopName;
	}

	public Integer getGroupId() {
		return groupId;
	}

	public void setGroupId(Integer groupId) {
		this.groupId = groupId;
	}

	public Integer getClassId() {
		return classId;
	}

	public void setClassId(Integer classId) {
		this.classId = classId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "HmstShopInfo{" +
			"id=" + id +
			", num=" + num +
			", shopTypeId=" + shopTypeId +
			", shopName=" + shopName +
			", groupId=" + groupId +
			", classId=" + classId +
			"}";
	}
}
